/**
 * 
 */
package com.cvlep.mts.mem;

import org.apache.commons.configuration.Configuration;
import org.cometd.Client;

import com.cvlep.appbase.log.MTSLogger;
import com.cvlep.appbase.mem.AbstractMemMapTable;
import com.cvlep.mts.configuration.MTSConfigurationTool;

/**
 * @author Otupia
 * 
 */
public class UCMapping extends AbstractMemMapTable<String, String>
{
	private UCMapping(int mapSize)
	{
		super(mapSize);
	}

	private static Configuration MTSConfiguration = MTSConfigurationTool.getConfiguration();

	private static UCMapping UCMap = new UCMapping(MTSConfiguration.getInt("UCMapping.size"));

	public static UCMapping getInstance()
	{
		return UCMap;
	}

	/* (non-Javadoc)
	 * @see com.cvlep.appbase.mem.MemTable#initTable()
	 */
	@Override
	public void initTable()
	{
		MTSLogger.info("Initing User-client Map,the method does nothing in fact!!");
	}

	/* (non-Javadoc)
	 * @see com.cvlep.appbase.mem.MemTable#refreshTable()
	 */
	@Override
	public void refreshTable()
	{
		MTSLogger.info("Refreshing User-client Map,the method does nothing in fact!!");
	}
	
	@Override
	public String toString()
	{
		return this.Table.toString();
	}
}
